package top.yuyufeng.web;

import top.yuyufeng.web.utils.ImageUtil;
import top.yuyufeng.web.utils.MyImageUtil;

import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Random;

/**
 * @author yuyufeng
 * @date 2018/1/22
 */
public class App {
    public static void main(String[] args) throws Exception {
        BufferedImage big = ImageIO.read(new File("d://test/upload/valid1.png"));
        Graphics g = big.getGraphics();
        g.setColor(Color.white);
        g.fillRect(41,11,45,45);
//        g.drawRect(60,80,45,45);
        ImageIO.write(big, "png", new File("d://test/test.png"));

         }
}
